<%-- 
    Document   : newjsp
    Created on : Nov 8, 2011, 8:16:53 PM
    Author     : Renaldo Malau
--%>

<%@page import="javax.swing.JOptionPane"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body background="images hotel/__days_of_lasers_in_the_jungle_by_foureyes.jpg">
        <table border="1" >
            <tr>
                <td colspan="6" > 
                    <img src="images hotel/894_1_1000 bbg central hotel Bangkok 1.jpg" height="140" width="1350">
            <marquee style="font-family:Broadway BT;color:blue;font-size:20px">WELCOME TO HOTEL ADMF WEBSITE</marquee>
        </td>
            </tr>
            <tr>
                <td align="justify" valign="top" bgcolor="#69F" height="500">

                    <img src="images hotel/menu header.jpg" height="65" width="270" align="middle">
                    <table border="1" style="background: #CF9" align="center" width="270">
                        <tr><td><a href="resepsionis.jsp"><input type="button" value="Resepsionis"/></a></td></tr>
                        <tr><td> <a href="lihat&UpdateTamu.jsp"><input type="button" value="lihat & update data tamu"/></a></td></tr>
                        <tr><td> <a href="ubahStatus.jsp" ><input type="button" value="Ubah status"/></a></td></tr>
                    </table>
                </td>
                <td width="80%" height="70%" >
                    <form action="login_simpanData.jsp">
                        <table align="center" border="1">
                            <tr>
                                <td>User Name :</td>
                                <td>
                                    <%String Pemakai = request.getParameter("username");
                                        if (Pemakai == null) {
                                            Pemakai = "";
                                        } else {
                                            Pemakai = request.getParameter("username");
                                        }%>
                                    <input type="text" name="username" value="<%= Pemakai%>"/>
                                </td>
                            </tr>
                            <tr>
                                <td>Password :</td>
                                <td><input type="password" name="pass"/></td>
                            </tr>
                            <tr>
                                <td><input type="submit" value="login"/></td>
                                <td><input type="reset" value="reset" /></td>
                            </tr>
                        </table>

                    </form>

                    <%
                        String msg = request.getParameter("msg");//menampilkan feedback jika user melakukan kesalahan
                        if (msg != null) {
                            JOptionPane.showMessageDialog(null, msg);
                        }%>
                </td>
            </tr>
        </table>






    </body>
</html>
